﻿namespace WMS6.Web.InventoryMgtServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DebuggerStepThrough, DataContract(Name="InvMovesInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class InvMovesInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string DocIDField;
        [OptionalField]
        private int DocLineIDField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string FromLocField;
        [OptionalField]
        private string FromLotField;
        [OptionalField]
        private string FromLpnField;
        [OptionalField]
        private decimal FromMoveQtyField;
        [OptionalField]
        private string FromOwnerIDField;
        [OptionalField]
        private string FromPackIDField;
        [OptionalField]
        private string FromSkuIDField;
        [OptionalField]
        private string FromUomIDField;
        [OptionalField]
        private DateTime MoveDateField;
        [OptionalField]
        private decimal MoveQtyField;
        [OptionalField]
        private string PackIDField;
        [OptionalField]
        private string ToLocField;
        [OptionalField]
        private string ToLotField;
        [OptionalField]
        private string ToLpnField;
        [OptionalField]
        private string ToOwnerIDField;
        [OptionalField]
        private string ToSkuIDField;
        [OptionalField]
        private string UomIDField;
        [OptionalField]
        private string UpdatedByField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string DocID
        {
            get
            {
                return this.DocIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DocIDField, value))
                {
                    this.DocIDField = value;
                    this.RaisePropertyChanged("DocID");
                }
            }
        }

        [DataMember]
        public int DocLineID
        {
            get
            {
                return this.DocLineIDField;
            }
            set
            {
                if (!this.DocLineIDField.Equals(value))
                {
                    this.DocLineIDField = value;
                    this.RaisePropertyChanged("DocLineID");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string FromLoc
        {
            get
            {
                return this.FromLocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromLocField, value))
                {
                    this.FromLocField = value;
                    this.RaisePropertyChanged("FromLoc");
                }
            }
        }

        [DataMember]
        public string FromLot
        {
            get
            {
                return this.FromLotField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromLotField, value))
                {
                    this.FromLotField = value;
                    this.RaisePropertyChanged("FromLot");
                }
            }
        }

        [DataMember]
        public string FromLpn
        {
            get
            {
                return this.FromLpnField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromLpnField, value))
                {
                    this.FromLpnField = value;
                    this.RaisePropertyChanged("FromLpn");
                }
            }
        }

        [DataMember]
        public decimal FromMoveQty
        {
            get
            {
                return this.FromMoveQtyField;
            }
            set
            {
                if (!this.FromMoveQtyField.Equals(value))
                {
                    this.FromMoveQtyField = value;
                    this.RaisePropertyChanged("FromMoveQty");
                }
            }
        }

        [DataMember]
        public string FromOwnerID
        {
            get
            {
                return this.FromOwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromOwnerIDField, value))
                {
                    this.FromOwnerIDField = value;
                    this.RaisePropertyChanged("FromOwnerID");
                }
            }
        }

        [DataMember]
        public string FromPackID
        {
            get
            {
                return this.FromPackIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromPackIDField, value))
                {
                    this.FromPackIDField = value;
                    this.RaisePropertyChanged("FromPackID");
                }
            }
        }

        [DataMember]
        public string FromSkuID
        {
            get
            {
                return this.FromSkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromSkuIDField, value))
                {
                    this.FromSkuIDField = value;
                    this.RaisePropertyChanged("FromSkuID");
                }
            }
        }

        [DataMember]
        public string FromUomID
        {
            get
            {
                return this.FromUomIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromUomIDField, value))
                {
                    this.FromUomIDField = value;
                    this.RaisePropertyChanged("FromUomID");
                }
            }
        }

        [DataMember]
        public DateTime MoveDate
        {
            get
            {
                return this.MoveDateField;
            }
            set
            {
                if (!this.MoveDateField.Equals(value))
                {
                    this.MoveDateField = value;
                    this.RaisePropertyChanged("MoveDate");
                }
            }
        }

        [DataMember]
        public decimal MoveQty
        {
            get
            {
                return this.MoveQtyField;
            }
            set
            {
                if (!this.MoveQtyField.Equals(value))
                {
                    this.MoveQtyField = value;
                    this.RaisePropertyChanged("MoveQty");
                }
            }
        }

        [DataMember]
        public string PackID
        {
            get
            {
                return this.PackIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PackIDField, value))
                {
                    this.PackIDField = value;
                    this.RaisePropertyChanged("PackID");
                }
            }
        }

        [DataMember]
        public string ToLoc
        {
            get
            {
                return this.ToLocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToLocField, value))
                {
                    this.ToLocField = value;
                    this.RaisePropertyChanged("ToLoc");
                }
            }
        }

        [DataMember]
        public string ToLot
        {
            get
            {
                return this.ToLotField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToLotField, value))
                {
                    this.ToLotField = value;
                    this.RaisePropertyChanged("ToLot");
                }
            }
        }

        [DataMember]
        public string ToLpn
        {
            get
            {
                return this.ToLpnField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToLpnField, value))
                {
                    this.ToLpnField = value;
                    this.RaisePropertyChanged("ToLpn");
                }
            }
        }

        [DataMember]
        public string ToOwnerID
        {
            get
            {
                return this.ToOwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToOwnerIDField, value))
                {
                    this.ToOwnerIDField = value;
                    this.RaisePropertyChanged("ToOwnerID");
                }
            }
        }

        [DataMember]
        public string ToSkuID
        {
            get
            {
                return this.ToSkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToSkuIDField, value))
                {
                    this.ToSkuIDField = value;
                    this.RaisePropertyChanged("ToSkuID");
                }
            }
        }

        [DataMember]
        public string UomID
        {
            get
            {
                return this.UomIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UomIDField, value))
                {
                    this.UomIDField = value;
                    this.RaisePropertyChanged("UomID");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }
    }
}

